#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2025/04/15 13:25
# @File           : camera.py
# @IDE            : PyCharm
# @desc           : 摄像头

from fastapi import Depends, Query
from core.dependencies import Paging, QueryParams



class CameraParams(QueryParams):
    """_summary_
    摄像机分页查询参数类

    Args:
        QueryParams (_type_): _description_
    """
    def __init__(self, 
                 status: str | None = Query(None, title="摄像头状态"),
                 serial_number: str | None = Query(None, title="摄像头序列号"),
                 model: str | None = Query(None, title="摄像头型号"),
                 params: Paging = Depends()):
        super().__init__(params)
        self.status = ('in', [status] if status else None)
        self.serial_number = ('like', serial_number)
        self.model = ('like', model)
